﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class Aircraft: Vehicle, IFly
    {
        private string name;
        public string Name { get; set; }
        public Aircraft(string name):base(name)
        {
            this.name = name;
        }
        public void fiy()
        {
            Console.WriteLine("{0}会飞", this.name);
        }
    }
}
